#!/bin/bash
#
# Cycle through a compile-error and delete file process 
# until complete
#

count=1

while [ 0 -lt ${count} ]
do
 count=0
 for srcf in $(2>&1  javac -cp aino.jar -g -d bin -encoding ISO-8859-1 src/aino/lib/*.java | egrep aino/lib | sed 's/:.*//' | sort -u )
 do 
  if svn delete --force ${srcf}
  then
   count=$(( ${count} + 1 ))
  else
   cat<<EOF>&2
Error from svn delete
EOF
   break;
  fi
 done
done
echo $0 Complete
exit 0
